package com.jiangyg.mall.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 类描述：属性分组
 *
 * @author jiangyg
 * @email email@jiangyg.com
 * @date 2021-10-18 22:25:29
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode
@TableName("mp_attrgroup")
public class Attrgroup implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 分组id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @TableField("id")
    private Long id;

    /**
     * 组名
     */
    @TableField("name")
    private String name;

    /**
     * 排序
     */
    @TableField("sort")
    private Integer sort;

    /**
     * 组图标
     */
    @TableField("icon")
    private String icon;

    /**
     * 描述
     */
    @TableField("desct")
    private String desct;

    /**
     * 所属分类id
     */
    @TableField("category_id")
    private Long categoryId;

}
